package cn.jbolt.ai.core.chain.config;

import cn.jbolt.util.JSONUtil;
import com.fasterxml.jackson.databind.JsonNode;

public class UiAppConfig {

    //用户头像
    private String userAvatar="";
    //ai 头像
    private String assistantAvatar="";
    //应用logo
    private String appLogo="";
    //聊天时候,是否展示头像
    private Boolean showAvatar=false;

    public static UiAppConfig from(JsonNode jsonNode) {
        return JSONUtil.toObject(jsonNode, UiAppConfig.class);

    }

    // 将 UiAppConfig 对象转换为 JSON 字符串的方法
    public static JsonNode getDefaultConfig() {
        return JSONUtil.toJsonObject(new UiAppConfig());
    }

    public static void main(String[] args) {
        System.out.println(JSONUtil.toJson(new UiAppConfig()));
    }


    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getAssistantAvatar() {
        return assistantAvatar;
    }

    public void setAssistantAvatar(String assistantAvatar) {
        this.assistantAvatar = assistantAvatar;
    }

    public String getAppLogo() {
        return appLogo;
    }

    public void setAppLogo(String appLogo) {
        this.appLogo = appLogo;
    }

    public Boolean getShowAvatar() {
        return showAvatar;
    }

    public void setShowAvatar(Boolean showAvatar) {
        this.showAvatar = showAvatar;
    }
}
